//
//  AdvancedIdentifyView.m
//  YTwallet
//
//  Created by ZhangLin on 2019/4/3.
//  Copyright © 2019年 hadrlog. All rights reserved.
//

#import "AdvancedIdentifyView.h"
#import <Masonry.h>
@implementation AdvancedIdentifyView

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        [self setupViews];
    }
    return self;
}

-(void)setupViews{
    self.tipsLab = [[UILabel alloc] init];
    self.tipsLab.textColor = [UIColor colorWithRed:51 / 255.0 green:51 / 255.0 blue:51 / 255.0 alpha:1];
    self.tipsLab.font = [UIFont boldSystemFontOfSize:18.0];
    self.tipsLab.text = @"填写商户信息";
    [self.self addSubview:self.tipsLab];
    [self.tipsLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(15);
        make.centerY.equalTo(self);
    }];
    
    self.stypeLab = [[UILabel alloc] init];
    self.stypeLab.font = [UIFont systemFontOfSize:14];
    NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:@"1/4"];
    [attributedString addAttribute:NSForegroundColorAttributeName value:[UIColor colorWithRed:91.0f/255.0f green:113.0f/255.0f blue:255.0f/255.0f alpha:1.0f] range:NSMakeRange(0, 1)];
    
    
    [attributedString addAttribute:NSForegroundColorAttributeName value:[UIColor colorWithRed:51.0f/255.0f green:51.0f/255.0f blue:51.0f/255.0f alpha:1.0f] range:NSMakeRange(1, 2)];
    self.stypeLab.attributedText = attributedString;
    [self addSubview:self.stypeLab];
    [self.stypeLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(-15);
        make.centerY.equalTo(self);
    }];
}
@end
